package com.ta.stage.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;


@Data
@TableName(value = "dept")
@ApiModel(description = "部门表")
public class Dept implements Serializable {

    @TableId(value = "id",type = IdType.AUTO)
    @ApiModelProperty(value = "部门编号")
    private Integer id;

    @ApiModelProperty(value = "部门名称")
    private String name;

    @TableField(value = "parent_id")
    @ApiModelProperty(value = "上级部门编号 数据库字段与实体字段不一致")
    private int parentId;

    @ApiModelProperty(value = "部门负责人")
    private String charge;

    @ApiModelProperty(value = "联系电话")
    private String tel;

    @ApiModelProperty(value = "部门地址")
    private String address;

    @ApiModelProperty(value = "逻辑删除（1：已删除 0：未删除）")
    @TableLogic
    @TableField("is_deleted")
    private Integer isDeleted;

    @ApiModelProperty(value = "备用字段2")
    private String by2;
}
